package com.luo.dt.seata.tcc.model.dto;

/**
 * 创建订单DTO
 *
 * @author luohq
 * @date 2022-12-03 18:58
 */
public class CreateOrderDto {
    /**
     * 用户ID
     */
    private String userId;
    /**
     * 商品编码
     */
    private String commodityCode;
    /**
     * 商品数量
     */
    private Integer count;

    public CreateOrderDto(String userId, String commodityCode, Integer count) {
        this.userId = userId;
        this.commodityCode = commodityCode;
        this.count = count;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getCommodityCode() {
        return commodityCode;
    }

    public void setCommodityCode(String commodityCode) {
        this.commodityCode = commodityCode;
    }

    public Integer getCount() {
        return count;
    }

    public void setCount(Integer count) {
        this.count = count;
    }

    @Override
    public String toString() {
        return "BusinessDto{" +
                "userId='" + userId + '\'' +
                ", commodityCode='" + commodityCode + '\'' +
                ", count=" + count +
                '}';
    }
}
